<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{$theme_vars.name|default='Think网站'}</title>
    <!--公共头部，负责加载公共 css，和其它资源，放在 head.html-->
    <include file="public@head"/>
    <!--本页面自定义的样式，或其它资源-->
</head>
<body>
    <!--导航，放在nav.html-->

    <include file="public@nav"/>

    <!--幻灯片-->
    <ul id="home-slider" class="list-unstyled">
        <slides id="1">
            <li>
                <div class="caption-wraper">
                    <div class="caption">{$vo.title|default=''}</div>
                </div>
                <a href=""><img src="__TMPL__/public/assets/images/demo/1.jpg" alt=""></a>
            </li>
        </slides>
        <noslides id="1">
            <li>你还没有创建幻灯片;</li>
        </noslides>
    </ul>

    <!--主要内容-->
    <div class="container">
    <h2>{$theme_vars.name|default='ThinkCM网站'}</h2>

    <widget name="block1">
        <div  style="background:{$widget.vars.background|default='red'};height: 100px;line-height: 100px;margin-bottom:10px;color: #fff; "  class="">
            {$widget.title|default='分块一'}
        </div>
    </widget>
    <widget name="block2">
        <div style="background:{$widget.vars.background|default='blue'};border: {$widget.vars.border_width|default=1}px solid {$widget.vars.border_color|default='red'};height: 100px;line-height: 100px;color: #fff;" class="">
            {$widget.title|default='分块二'}
        </div>
    </widget>

    <widget name="widgetName1">
        <div class="">
            {$widget.vars.text}
        </div>
    </widget>

    <!--最新文章列表-->
        <php>
            $category_ids=1;
        </php>
        <portal:articles limit="5" order="post.published_time DESC"
                         categoryIds="$category_ids">
            <dl class="dl-horizontal">
                <dt>
                    <a class="img-wraper"
                       href="{:url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo.category_id))}">
                        <if condition="empty($vo.more.thumbnail)">
                            <img src="__TMPL__/public/assets/images/default_tupian4.png"
                                 class="img-responsive" alt="{$vo.post_title}"/>
                            <else/>
                            <img src="{:cmf_get_image_url($vo.more.thumbnail)}"
                                 class="img-responsive" alt="{$vo.post_title}"/>
                        </if>
                    </a>
                </dt>
                <dd>
                    <a href="{:url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo.category_id))}">{$vo.post_title}</a>
                </dd>
            </dl>
        </portal:articles>


    </div>


    <!--公共底部，放在 footer.html-->
    <include file="public@footer"/>
    <!--公共js文件，放在scripts.html-->
    <include file="public@scripts"/>
    <!--本页面自定义的js-->
</body>
</html>